import sys,os
import random
import string
import data
import pygame
import constants
from pygame.locals import *

class inputs:
	def __init__(self):
		self.offset = constants.offset
	
	def move(self):
		cursor_xy = pygame.mouse.get_pos()
		self.direction = []
		if(cursor_xy[0] <= self.offset):
			print "x:0"
			self.direction.append(-1)
		elif(cursor_xy[0] >= constants.SCREEN_SIZE[0]-self.offset):
			print "x:1"
			self.direction.append(1)
		if(cursor_xy[1] <= self.offset):
			print "y:0"
			self.direction.append(-1)
		elif(cursor_xy[1] >= constants.SCREEN_SIZE[1]-self.offset):
			print "y:1"
			self.direction.append(1)
		else:
			self.direction = [0,-1]
		
		return self.direction